|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
AbstractWSDLContext.java | 0% | 80% | 88.9% | 76.2% |
|
1 |
/*
|
|
2 |
* Copyright 2001-2004 The Apache Software Foundation.
|
|
3 |
*
|
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5 |
* you may not use this file except in compliance with the License.
|
|
6 |
* You may obtain a copy of the License at
|
|
7 |
*
|
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9 |
*
|
|
10 |
* Unless required by applicable law or agreed to in writing, software
|
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13 |
* See the License for the specific language governing permissions and
|
|
14 |
* limitations under the License.
|
|
15 |
*/
|
|
16 |
|
|
17 |
package org.apache.geronimo.ews.ws4j2ee.context.wsdl.impl;
|
|
18 |
|
|
19 |
import org.apache.axis.wsdl.symbolTable.BindingEntry;
|
|
20 |
import org.apache.axis.wsdl.symbolTable.PortTypeEntry;
|
|
21 |
import org.apache.axis.wsdl.symbolTable.ServiceEntry;
|
|
22 |
import org.apache.geronimo.ews.ws4j2ee.context.wsdl.WSDLContext;
|
|
23 |
import org.apache.geronimo.ews.ws4j2ee.toWs.UnrecoverableGenerationFault;
|
|
24 |
|
|
25 |
import javax.wsdl.Port;
|
|
26 |
|
|
27 |
/**
|
|
28 |
* @author hemapani@opensource.lk
|
|
29 |
*/
|
|
30 |
public abstract class AbstractWSDLContext implements WSDLContext { |
|
31 |
private ServiceEntry service;
|
|
32 |
private BindingEntry binding;
|
|
33 |
private PortTypeEntry portType;
|
|
34 |
private Port port;
|
|
35 |
|
|
36 | 62 |
public BindingEntry gettargetBinding() {
|
37 | 62 |
return binding;
|
38 |
} |
|
39 |
|
|
40 | 30 |
public PortTypeEntry getTargetPortType() {
|
41 | 30 |
return portType;
|
42 |
} |
|
43 |
|
|
44 | 11 |
public ServiceEntry gettargetService() {
|
45 | 11 |
return service;
|
46 |
} |
|
47 |
|
|
48 | 22 |
public void settargetBinding(BindingEntry binding) { |
49 | 22 |
this.binding = binding;
|
50 |
} |
|
51 |
|
|
52 | 22 |
public void setTargetPortType(PortTypeEntry port) { |
53 | 22 |
this.portType = port;
|
54 |
} |
|
55 |
|
|
56 | 22 |
public void settargetService(ServiceEntry service) { |
57 | 22 |
this.service = service;
|
58 |
} |
|
59 |
|
|
60 | 22 |
public Port getTargetPort() {
|
61 | 22 |
return port;
|
62 |
} |
|
63 |
|
|
64 | 11 |
public void setTargetPort(Port port) { |
65 | 11 |
this.port = port;
|
66 |
} |
|
67 |
|
|
68 |
/* (non-Javadoc)
|
|
69 |
* @see org.apache.geronimo.ews.ws4j2ee.context.wsdl.WSDLContext#validate()
|
|
70 |
*/
|
|
71 | 0 |
public void validate() { |
72 | 0 |
if (portType == null || binding == null |
73 |
) { |
|
74 | 0 |
throw new UnrecoverableGenerationFault("validation of MiscInfo failed"); |
75 |
} |
|
76 |
} |
|
77 |
|
|
78 |
} |
|
79 |
|
|